﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="SPKetThucTrongNgay.ascx.vb" Inherits="SanDauGia.DAL.SPKetThucTrongNgay" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<style type="text/css">
    
    .style1
    {
        width: 175px;
    }
    
    </style>
<asp:ListView ID="lvSanPham" runat="server" 
    EnableModelValidation="True" GroupItemCount="3" DataKeyNames="MaSanPham" 
    DataSourceID="ObjectSPKetThucTrongNgay" >
    <AlternatingItemTemplate>
        <td id="Td0" runat="server" class="style1">
             <li class="ProductList">
          <div>
                    <div>
                    <br />
                    </div>
                    <div style="text-align: center">
                        <asp:HyperLink ID="HyperLink2" runat="server" 
                            ImageUrl='<%# "../"+Eval("HinhAnhNho") %>' style="text-align: center" 
                            NavigateUrl='<%# "../ProductInfo.aspx?idPro="&Eval("MaSanPham") %>'>HyperLink</asp:HyperLink>
                    </div>
                    <div>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div style="text-align: center">
                        
                        <asp:Label ID="TenSanPhamLabel" runat="server" Font-Bold="True" 
                            Text='<%# Eval("TenSanPham") %>'></asp:Label>
                    </div>
                    <div style="text-align: center">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                    </div>
                   <div style="text-align: center">
                        Giá Khởi Điểm:<asp:Label ID="lbDonGia" runat="server" style="text-align: center" 
                            Text='<%# Eval("DonGia", "{0:C}") %>'></asp:Label>
                    
                    </div>
                    <div style="text-align: center">
                        Giá Đấu Cao Nhất:&nbsp;<asp:Label ID="GiaDauCaoNhatLabel" runat="server" 
                            Text='<%# Eval("GiaDauCaoNhat", "{0:C}") %>'></asp:Label>
                    </div>
                    <div style="text-align: center">
                        <asp:Label ID="TrangThaiMuaNgayLabel" runat="server" 
                            Text='<%# Eval("GhiChu2") %>'></asp:Label>
                        
                    </div>
                    <div style="text-align: center">
                        
                        <asp:Label ID="lbKetThuc" runat="server" Text='<%# Eval("GhiChu") %>' 
                            Font-Bold="True" ForeColor="Red"></asp:Label>
                        
                        <br />
                        
                    </div>
          </div>
        </li>
       
       
        </td>
    </AlternatingItemTemplate>
    <EditItemTemplate>
        <td id="Td2" runat="server" style="">
            MaSanPham:
            <asp:Label ID="MaSanPhamLabel1" runat="server" 
                Text='<%# Eval("MaSanPham") %>' />
            <br />HinhAnhNho:
            <asp:TextBox ID="HinhAnhNhoTextBox" runat="server" 
                Text='<%# Bind("HinhAnhNho") %>' />
            <br />TenSanPham:
            <asp:TextBox ID="TenSanPhamTextBox" runat="server" 
                Text='<%# Bind("TenSanPham") %>' />
            <br />HoTen:
            <asp:TextBox ID="HoTenTextBox" runat="server" Text='<%# Bind("HoTen") %>' />
            <br />GiaDauCaoNhat:
            <asp:TextBox ID="GiaDauCaoNhatTextBox" runat="server" 
                Text='<%# Bind("GiaDauCaoNhat") %>' />
            <br />NgayKetThucDauGia:
            <asp:TextBox ID="NgayKetThucDauGiaTextBox" runat="server" 
                Text='<%# Bind("NgayKetThucDauGia") %>' />
            <br />ChoPhepMuaNgay:
            <asp:TextBox ID="ChoPhepMuaNgayTextBox" runat="server" 
                Text='<%# Bind("ChoPhepMuaNgay") %>' />
            <br />
            MoTa:
            <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
            <br />
            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                Text="Update" />
            <br />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Cancel" />
            <br />
        </td>
    </EditItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" 
            style="">
            <tr id="Tr1" runat="server">
                <td id="Td3" runat="server">
                    Không tồn tại sản phẩm nào cả.</td>
            </tr>
        </table>
    </EmptyDataTemplate>
    <EmptyItemTemplate>
<td id="Td4" runat="server" />
    </EmptyItemTemplate>
    <GroupTemplate>
        <tr ID="itemPlaceholderContainer" runat="server">
            <td ID="itemPlaceholder" runat="server">
            </td>
        </tr>
    </GroupTemplate>
    <InsertItemTemplate>
        <td id="Td5" runat="server" style="">
            MaSanPham:
            <asp:TextBox ID="MaSanPhamTextBox" runat="server" 
                Text='<%# Bind("MaSanPham") %>' />
            <br />HinhAnhNho:
            <asp:TextBox ID="HinhAnhNhoTextBox" runat="server" 
                Text='<%# Bind("HinhAnhNho") %>' />
            <br />TenSanPham:
            <asp:TextBox ID="TenSanPhamTextBox" runat="server" 
                Text='<%# Bind("TenSanPham") %>' />
            <br />HoTen:
            <asp:TextBox ID="HoTenTextBox" runat="server" Text='<%# Bind("HoTen") %>' />
            <br />GiaDauCaoNhat:
            <asp:TextBox ID="GiaDauCaoNhatTextBox" runat="server" 
                Text='<%# Bind("GiaDauCaoNhat") %>' />
            <br />NgayKetThucDauGia:
            <asp:TextBox ID="NgayKetThucDauGiaTextBox" runat="server" 
                Text='<%# Bind("NgayKetThucDauGia") %>' />
            <br />ChoPhepMuaNgay:
            <asp:TextBox ID="ChoPhepMuaNgayTextBox" runat="server" 
                Text='<%# Bind("ChoPhepMuaNgay") %>' />
            <br />
            MoTa:
            <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
            <br />
            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                Text="Insert" />
            <br />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Clear" />
            <br />
        </td>
    </InsertItemTemplate>
    <ItemTemplate>
        <td id="Td6" runat="server" class="style1">
         <li class="ProductList">
          <div>
                    <div>
                    <br />
                    </div>
                    <div style="text-align: center">
                        <asp:HyperLink ID="HyperLink2" runat="server" 
                            ImageUrl='<%# "../"+Eval("HinhAnhNho") %>' style="text-align: center" 
                            NavigateUrl='<%# "../ProductInfo.aspx?idPro="&Eval("MaSanPham") %>'>HyperLink</asp:HyperLink>
                    </div>
                    <div>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div style="text-align: center">
                        
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" 
                            Text='<%# Eval("TenSanPham") %>'></asp:Label>
                    </div>
                    <div>
                    
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                    </div>
                    <div style="text-align: center">
                        Giá Khởi Điểm:<asp:Label ID="lbDonGia" runat="server" style="text-align: center" 
                            Text='<%# Eval("DonGia", "{0:C}") %>'></asp:Label>
                    
                    </div>
                    <div style="text-align: center">
                        Giá Đấu Cao Nhất:&nbsp;<asp:Label ID="Label2" runat="server" 
                            Text='<%# Eval("GiaDauCaoNhat", "{0:C}") %>'></asp:Label>
                    </div>
                    <div style="text-align: center">
                        &nbsp;<asp:Label ID="TrangThaiMuaNgayLabel" runat="server" 
                            Text='<%# Eval("GhiChu2") %>'></asp:Label>
                        
                    </div>
                    <div style="text-align: center">
                        
                        <asp:Label ID="lbKetThuc" runat="server" Text='<%# Eval("GhiChu2") %>' 
                            Font-Bold="True" ForeColor="Red"></asp:Label>
                        
                        <br />
                        
                    </div>
          </div>
        </li>
       
        
       
        </td>
    </ItemTemplate>
    <LayoutTemplate>
        <table id="Table2" runat="server">
            <tr id="Tr2" runat="server">
                <td id="Td7" runat="server" 
                    style="text-align: right">
                    
                    <asp:DataPager ID="DataPager1" runat="server" PageSize="12" PagedControlID="lvSanPham">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" />
                            <asp:NumericPagerField />
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" />
                        </Fields>
                    </asp:DataPager>
                </td>
            </tr>
            <tr id="Tr3" runat="server">
                <td id="Td8" runat="server">
                    <table ID="groupPlaceholderContainer" runat="server" border="0" 
                        style="">
                        <tr ID="groupPlaceholder" runat="server">
                        </tr>
                    </table>
                </td>
            </tr> 
            <tr id="Tr1" runat="server">
                <td id="Td1" runat="server" 
                    style="text-align: right">
                    
                    <asp:DataPager ID="DataPager2" runat="server" PageSize="12" PagedControlID="lvSanPham">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" />
                            <asp:NumericPagerField />
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" />
                        </Fields>
                    </asp:DataPager>
                </td>
            </tr>           
        </table>
    </LayoutTemplate>
    <SelectedItemTemplate>
        <td id="Td9" runat="server" 
            style="">
            MaSanPham:
            <asp:Label ID="MaSanPhamLabel" runat="server" Text='<%# Eval("MaSanPham") %>' />
            <br />HinhAnhNho:
            <asp:Label ID="HinhAnhNhoLabel" runat="server" 
                Text='<%# Eval("HinhAnhNho") %>' />
            <br />TenSanPham:
            <asp:Label ID="TenSanPhamLabel" runat="server" 
                Text='<%# Eval("TenSanPham") %>' />
            <br />HoTen:
            <asp:Label ID="HoTenLabel" runat="server" Text='<%# Eval("HoTen") %>' />
            <br />GiaDauCaoNhat:
            <asp:Label ID="GiaDauCaoNhatLabel" runat="server" 
                Text='<%# Eval("GiaDauCaoNhat") %>' />
            <br />NgayKetThucDauGia:
            <asp:Label ID="NgayKetThucDauGiaLabel" runat="server" 
                Text='<%# Eval("NgayKetThucDauGia") %>' />
            <br />ChoPhepMuaNgay:
            <asp:Label ID="ChoPhepMuaNgayLabel" runat="server" 
                Text='<%# Eval("ChoPhepMuaNgay") %>' />
            <br />
            MoTa:
            <asp:Label ID="MoTaLabel" runat="server" Text='<%# Eval("MoTa") %>' />
            <br />
        </td>
    </SelectedItemTemplate>
</asp:ListView>
<asp:ObjectDataSource ID="ObjectSPKetThucTrongNgay" runat="server" 
    DeleteMethod="Delete" InsertMethod="Insert" 
    OldValuesParameterFormatString="original_{0}" 
    SelectMethod="GetDataByLoadSanPhamKetThucTrongNgay" 
    TypeName="SanDauGia.DAL.SanDauGiaTableAdapters.SANPHAMTableAdapter" 
    UpdateMethod="Update">
    <DeleteParameters>
        <asp:Parameter Name="Original_MaSanPham" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="MaSanPham" Type="Int32" />
        <asp:Parameter Name="TenSanPham" Type="String" />
        <asp:Parameter Name="DonGia" Type="Int32" />
        <asp:Parameter Name="GiaDauCaoNhat" Type="Int32" />
        <asp:Parameter Name="MaKhachHangDauCaoNhat" Type="Int32" />
        <asp:Parameter Name="DonViTinh" Type="String" />
        <asp:Parameter Name="MoTa" Type="String" />
        <asp:Parameter Name="MaDanhMuc" Type="Int32" />
        <asp:Parameter Name="MaLoai" Type="Int32" />
        <asp:Parameter Name="HinhAnhLon" Type="String" />
        <asp:Parameter Name="HinhAnhNho" Type="String" />
        <asp:Parameter Name="GiaSan" Type="Int32" />
        <asp:Parameter Name="GiaMuaNgay" Type="Int32" />
        <asp:Parameter Name="MucNangGia" Type="Int32" />
        <asp:Parameter Name="NgayDauGia" Type="DateTime" />
        <asp:Parameter Name="ThoiGianDauGia" Type="Int32" />
        <asp:Parameter Name="SoNgayTraHang" Type="Int32" />
        <asp:Parameter Name="TienThue" Type="Int32" />
        <asp:Parameter Name="NgayKetThucDauGia" Type="DateTime" />
        <asp:Parameter Name="MaSoNguoiBan" Type="Int32" />
        <asp:Parameter Name="ChiPhiNguoiBan" Type="Int32" />
        <asp:Parameter Name="LuotDauCuoiCung" Type="DateTime" />
        <asp:Parameter Name="DiaDiemSanPham" Type="String" />
        <asp:Parameter Name="MoTaChiTietSanPham" Type="String" />
        <asp:Parameter Name="CoGiaSan" Type="Boolean" />
        <asp:Parameter Name="HinhThucHoanTraTien" Type="String" />
        <asp:Parameter Name="SoNguoiRaGia" Type="Int32" />
        <asp:Parameter Name="SoLanRaGia" Type="Int32" />
        <asp:Parameter Name="BanHayMuaNgay" Type="Boolean" />
        <asp:Parameter Name="ChoPhepMuaNgay" Type="Boolean" />
        <asp:Parameter Name="KetThuc" Type="Boolean" />
        <asp:Parameter Name="TraHang" Type="Boolean" />
        <asp:Parameter Name="GhiChu" Type="String" />
        <asp:Parameter Name="GhiChu2" Type="String" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="TenSanPham" Type="String" />
        <asp:Parameter Name="DonGia" Type="Int32" />
        <asp:Parameter Name="GiaDauCaoNhat" Type="Int32" />
        <asp:Parameter Name="MaKhachHangDauCaoNhat" Type="Int32" />
        <asp:Parameter Name="DonViTinh" Type="String" />
        <asp:Parameter Name="MoTa" Type="String" />
        <asp:Parameter Name="MaDanhMuc" Type="Int32" />
        <asp:Parameter Name="MaLoai" Type="Int32" />
        <asp:Parameter Name="HinhAnhLon" Type="String" />
        <asp:Parameter Name="HinhAnhNho" Type="String" />
        <asp:Parameter Name="GiaSan" Type="Int32" />
        <asp:Parameter Name="GiaMuaNgay" Type="Int32" />
        <asp:Parameter Name="MucNangGia" Type="Int32" />
        <asp:Parameter Name="NgayDauGia" Type="DateTime" />
        <asp:Parameter Name="ThoiGianDauGia" Type="Int32" />
        <asp:Parameter Name="SoNgayTraHang" Type="Int32" />
        <asp:Parameter Name="TienThue" Type="Int32" />
        <asp:Parameter Name="NgayKetThucDauGia" Type="DateTime" />
        <asp:Parameter Name="MaSoNguoiBan" Type="Int32" />
        <asp:Parameter Name="ChiPhiNguoiBan" Type="Int32" />
        <asp:Parameter Name="LuotDauCuoiCung" Type="DateTime" />
        <asp:Parameter Name="DiaDiemSanPham" Type="String" />
        <asp:Parameter Name="MoTaChiTietSanPham" Type="String" />
        <asp:Parameter Name="CoGiaSan" Type="Boolean" />
        <asp:Parameter Name="HinhThucHoanTraTien" Type="String" />
        <asp:Parameter Name="SoNguoiRaGia" Type="Int32" />
        <asp:Parameter Name="SoLanRaGia" Type="Int32" />
        <asp:Parameter Name="BanHayMuaNgay" Type="Boolean" />
        <asp:Parameter Name="ChoPhepMuaNgay" Type="Boolean" />
        <asp:Parameter Name="KetThuc" Type="Boolean" />
        <asp:Parameter Name="TraHang" Type="Boolean" />
        <asp:Parameter Name="GhiChu" Type="String" />
        <asp:Parameter Name="GhiChu2" Type="String" />
        <asp:Parameter Name="Original_MaSanPham" Type="Int32" />
    </UpdateParameters>
</asp:ObjectDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SanDauGiaConnectionString %>" 
    SelectCommand="usp_LoadSanPhamKetThucTrongNgay" 
    SelectCommandType="StoredProcedure">
</asp:SqlDataSource>


